﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Fit4 Extranet</title>
  <link href="<%=MetodosComuns.GetVirtualPath%>/App_Themes/Theme1/Estilos Extranet Fit4.css"
    rel="stylesheet" type="text/css" />

  <script type="text/javascript">
<!--
    function moveRelogio() {
      momentoAtual = new Date()
      hora = momentoAtual.getHours()
      minuto = momentoAtual.getMinutes()
      segundo = momentoAtual.getSeconds()

      //str_segundo = new String (segundo) 
      //if (str_segundo.length == 1) 
      //   segundo = "0" + segundo 

      str_minuto = new String(minuto)
      if (str_minuto.length == 1)
        minuto = "0" + minuto

      str_hora = new String(hora)
      if (str_hora.length == 1)
        hora = "0" + hora

      horaImprimivel = hora + ":" + minuto //+ ":" + segundo 

      myday = momentoAtual.getDay();

      if (myday == 0)
        day = " Domingo, "
      else if (myday == 1)
        day = " Segunda-Feira, "
      else if (myday == 2)
        day = " Terça-Feira, "
      else if (myday == 3)
        day = " Quarta-Feira, "
      else if (myday == 4)
        day = " Quinta-Feira, "
      else if (myday == 5)
        day = " Sexta-Feira, "
      else if (myday == 6)
        day = " Sábado, "

      var mes = momentoAtual.getMonth() + 1;

      document.getElementById("relogio").innerHTML = horaImprimivel
      document.getElementById("data").innerHTML = day + momentoAtual.getDate() + "/" + mes + "/" + momentoAtual.getFullYear();

      setTimeout("moveRelogio()", 1000)
    }
//-->
  </script>

</head>
<body onload="moveRelogio()">
  <form id="form1" runat="server">
  <asp:ScriptManager ID="ScriptManager1" runat="server" />
  <table style="width: 990px; background-color: #FFFFFF" border="0" align="center"
    cellpadding="0" cellspacing="0" id="container">
    <tr>
      <td style="height: 120px;" colspan="2">
        <table width="990" border="0" cellpadding="0" cellspacing="0" background="imagens/cabecalho.jpg">
          <tr>
            <td style="width: 790px; height: 120px;">
              &nbsp;
            </td>
            <td style="width: 200px; height: 120px;" align="center" valign="middle">
              <div id="relogio" class="relogio">
                Carregando...
              </div>
              <div id="data" class="data">
                Carregando...
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td colspan="2">
        &nbsp;
      </td>
    </tr>
    <tr>
      <td style="width: 790px;" valign="top">
        <table style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="width: 10px; height: 100px;">
              &nbsp;
            </td>
            <td style="height: 100px;" colspan="3" valign="top">
              <table style="width: 380px;" border="0" cellpadding="0" cellspacing="0" class="box-Home">
                <tr>
                  <td style="height: 25px;" valign="top">
                    <img src="imagens/titulo-box-login2.jpg" alt="" width="380" height="25" />
                  </td>
                </tr>
                <tr>
                  <td class="celula-login">
                    <div>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td colspan="6">
                            <asp:Label ID="lblErro" runat="server" Visible="False" SkinID="lblVermelhoBold" Text="Nome do Usuário ou Senha inválidos<br/><br/>" />
                          </td>
                        </tr>
                        <tr>
                          <td>
                          </td>
                          <td style="width: 14%;">
                            Usuário:
                          </td>
                          <td>
                          </td>
                          <td>
                            <asp:TextBox runat="server" ID="txtUsuario" Width="120px" MaxLength="20" />
                          </td>
                          <td>
                          </td>
                          <td style="width: 86%;">
                          </td>
                        </tr>
                        <tr>
                          <td>
                            &nbsp;
                          </td>
                          <td>
                            Senha:
                          </td>
                          <td>
                            &nbsp;
                          </td>
                          <td>
                            <asp:TextBox ID="txtSenha" runat="server" MaxLength="20" Width="120px" TextMode="Password" />
                          </td>
                          <td>
                            &nbsp;
                          </td>
                          <td>
                            &nbsp;&nbsp;
                            <asp:Button ID="btnLogin" runat="server" Text="Entrar" SkinID="btnPadrao" Style="margin-left: 0px;
                              font-size: medium;" Width="75px" />
                          </td>
                        </tr>
                        <tr>
                          <td colspan="6">
                            <br style="line-height: 8px;" />
                            &nbsp;<asp:LinkButton ID="lb_EsqueciSenha" runat="server" Text="Esqueci minha Senha"
                              ToolTip="Esqueci minha Senha" />
                          </td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
              </table>
            </td>
            <td style="width: 20px; height: 100px;">
              &nbsp;
            </td>
            <td style="width: 380px; height: 100px;" valign="top">
              <a href="<%=MetodosComuns.GetVirtualPath%>/Cadastro.aspx">
                <img src="imagens/box-cadastrar.jpg" alt="" style="width: 380px; height: 100px; border: 0px;" />
              </a>
            </td>
          </tr>
          <tr>
            <td style="width: 10px;">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td>
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td style="width: 380px;">
              &nbsp;
            </td>
          </tr>
          <tr>
            <td style="width: 10px;">
              &nbsp;
            </td>
            <td style="width: 20px;" valign="top">
              <img src="imagens/box-duvidas.jpg" alt="" width="180" height="140" />
            </td>
            <td style="width: 180px;" valign="top">
              <a href="<%=MetodosComuns.GetVirtualPath%>/trabalhe/cadastrarCandidato.aspx">
                <img src="imagens/box-trabalhe.jpg" alt="" style="width: 180px; height: 140px; border: 0px;" />
              </a>
            </td>
            <td rowspan="3" valign="top">
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td style="width: 380px;" rowspan="3" valign="top">
              <img src="imagens/titulo-box-noticias.jpg" alt="" width="380" height="25" />
              <cc1:Accordion ID="Accordion1" runat="server" HeaderCssClass="divCinza" BorderColor="ActiveBorder"
                HeaderSelectedCssClass="divLaranja" ContentCssClass="divNoticia" FadeTransitions="true"
                CssClass="box-Noticias">
                <HeaderTemplate>
                  <%#Eval("Titulo")%>
                  <%#Eval("DataPostagemFormatada")%>
                </HeaderTemplate>
                <ContentTemplate>
                  <img style="width: 380px" src='<%# "imagens/noticias/" & Eval("NomeImagem") %>' alt="" /><br />
                  <%# Eval("Corpo") %>
                </ContentTemplate>
              </cc1:Accordion>
            </td>
          </tr>
          <tr>
            <td style="width: 10px;">
              &nbsp;
            </td>
            <td style="width: 180px;">
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
          </tr>
          <tr>
            <td style="width: 10px;">
              &nbsp;
            </td>
            <td style="width: 180px;" valign="top">
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td style="width: 20px;">
              &nbsp;
            </td>
          </tr>
        </table>
      </td>
      <td style="width: 200px;" valign="top">
        <table style="width: 200px;" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td style="width: 20px;">
              &nbsp;
            </td>
            <td>
              <table style="width: 170px;" border="0" cellpadding="0" cellspacing="0" class="box-right">
                <tr>
                  <td colspan="2">
                    <img src="<%=MetodosComuns.GetVirtualPath%>/imagens/titulo-box-ranking.jpg" alt=""
                      width="170" height="25" />
                  </td>
                </tr>
                <tr>
                  <td colspan="2" style="background-image: url('imagens/bg-boxRight.jpg'); background-repeat: repeat-y">
                    <asp:GridView ID="grvRanking" runat="server" AutoGenerateColumns="False" ShowHeader="False"
                      GridLines="None">
                      <Columns>
                        <asp:TemplateField>
                          <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("df") %>'></asp:TextBox>
                          </EditItemTemplate>
                          <ItemTemplate>
                            <table>
                              <tr>
                                <td style="height: 30px;">
                                  <span class="texto-rankingNum">
                                    <asp:Label ID="lblPos" SkinID="lblPosRanking" Visible="False" runat="server"></asp:Label></span>
                                  <asp:Image ID="imgBronze" runat="server" ImageUrl="~/imagens/medalha-bronze.jpg"
                                    Visible="False" />
                                  <asp:Image ID="imgPrata" runat="server" ImageUrl="~/imagens/medalha-prata.jpg" Visible="False" />
                                  <asp:Image ID="imgOuro" runat="server" ImageUrl="~/imagens/medalha-ouro.jpg" Visible="False" />
                                </td>
                              </tr>
                            </table>
                          </ItemTemplate>
                          <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Nome">
                          <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                      </Columns>
                    </asp:GridView>
                  </td>
                </tr>
              </table>
            </td>
            <td style="width: 10px;">
              &nbsp;
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  </form>

  <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>

  <script type="text/javascript">
    try {
      var pageTracker = _gat._getTracker("UA-9848669-1");
      pageTracker._trackPageview();
    } catch (err) { }</script>

</body>
</html>
